/**
 * Created by admin on 2018/3/28.
 */
function showS()
{
    document.getElementById("newsContent").scrolling="yes";
    document.getElementById("newsContent").style.overflow="scroll";
    //alert(document.getElementById("newsContent").scrolling);

}
function hideS()
{
    document.getElementById("newsContent").scrolling="no";
    document.getElementById("newsContent").style.overflow="hidden";
    //alert(document.getElementById("newsContent").style.overflow);
}

var iframe = document.getElementById("newsContent");
iframe.height=document.documentElement.clientHeight;
//以下判断iframe是否加载完,并且隐藏滚动条
if (iframe.attachEvent){
    iframe.attachEvent("onload", function(){
        //hideS();
        //document.getElementById("loading").style.display="none";
    });
} else {
    iframe.onload = function(){
        //  hideS();
        //document.getElementById("loading").style.display="none";
    };
}
/*$('.btn').on('click',function() {
    $(this).addClass('on').siblings().removeClass('on');
})*/
//点击左侧菜单栏按钮变色
$("#nav li").on('click', function () {
    //alert("!!!");
    $(this).addClass('active').siblings().removeClass('active');
})